<?php
declare(strict_types=1);

namespace App\Resource\LotteryTurntable\Balance;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "user_id" => $this->user_id ?? 0,
            "balance" => $this->balance ?? 0,
            "coin" => $this->user->money ?? 0,
            'head_picture'=>$this->user->user_data->head_picture??"",
        ];
    }
}